﻿@model Alma.Models.ProductCriterionModel

@{
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Mon profil", "Edit", "User", new { id = Session["UserId"] });
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Edition d'un critère");
}
<div class="fullcol">
<h1>Edition d'un critère de @Model.Name_Product</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
         <div class="editor-label">
            Nom du critère
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Name_Criterion, (ViewData["drop2"] as SelectList), "- CRITERION -")
            @Html.ValidationMessageFor(model => model.Name_Criterion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Value)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <p>
            <input type="submit" value="Sauver" />
        </p>
}

<div>
    @Html.ActionLink("Retour", "Edit", "User", new { id = Session["UserId"] }, null)
</div>

